<template>
  <div class="parent">
    <div class="left">
      <div class=" box">
      </div>
    </div>
    <div class="right">
      <div class="login">
        <LoginForm @go="go"  v-if="showFormType === 'login'" />
        <registerForm @go="go" v-else-if="showFormType === 'register'" />
        <resetPsdForm @go="go" v-else-if="showFormType === 'resetPwd'" />
      </div>
    </div>
  </div>
</template>

<script setup>
import LoginForm from './components/LoginForm.vue';
import registerForm from './components/registerForm.vue';
import resetPsdForm from './components/resetPsdForm.vue';
import { ref } from 'vue';
const showFormType = ref('login');
function go(formType){
  showFormType.value = formType
}

</script>

<style lang="less" scoped>
.parent {
  display: flex;
  width: 100%;
  height: 100%;
  background: url(../../../assets/bg.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;

  .left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52%;
    height: 100%;
    color: #fff;
    background-repeat: no-repeat;

    .box {
      width: 500px;

      .title {
        color: #fff;
        font-size: 26px;
      }

      .describe {
        font-size: 22px;
        color: #fff;
      }

 

      .content {
        color: #fff;
        font-size: 14px;
      }
    }
  }

  .right {
    position: relative;
    width: 48%;
    height: 100%;

    .login {
      position: relative;
      width: 100%;
      height: 100%;

    }

  }
}
</style>